package com.liming.common.pojo.entity.stock;

import com.baomidou.mybatisplus.annotation.TableName;
import com.liming.common.pojo.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liming
 * @date 2025/1/21
 */
@Data
@TableName("se_stock_flow")
@EqualsAndHashCode(callSuper = true)
public class StockFlow extends BaseEntity {

    /**
     * 库存ID
     */
    private Long stockId;

    /**
     * 商品ID
     */
    private Long productId;

    /**
     * 类型：1-入库，2-库存锁定，3-出库，4-库存解锁，5-退货
     */
    private Integer type;

    /**
     * 数量
     */
    private Integer quantity;

    /**
     * 订单ID
     */
    private Long orderId;

    /**
     * 操作人
     */
    private String operator;

    /**
     * 备注
     */
    private String remark;

}
